
<div class="error">
    <?php echo validation_errors(); ?>
</div>
<?php echo form_open(base_url().'admin.php?c=news&m='.(isset($entry)?'update':'add')); ?>
<?php echo isset($entry)?form_hidden('id', $entry->id):''; ?>

    <div class="form_row">
        <label for="title">标题</label>
        <input type="text" name="title" id="title" value="<?php echo isset($entry) ? $entry->title : set_value('title'); ?>"/> *
    </div>
    <div>资讯内容</div>
    <div class="form_row">
        <textarea name="content" rows="10" cols="50">
        <?php echo isset($entry) ? $entry->content : set_value('content'); ?>
    </textarea>
</div>
<div class="form_btn">
    <input type="submit" name="submit" value="提交"/>
</div>
<?php echo form_close(); ?>

<?php $this->load->view('richeditor'); ?>